the coolest way to integrate tan(x)